﻿using System;
using Unis.Framework.ORM.Attributes;

namespace KingRoad.EPM.CompletionMaterialsEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/8/7 20:34:14
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_AttachsFiles", new string[] { "Af_ID" })]
    public class ScmAttachsfilesInfo : BaseEntity
    {
        public ScmAttachsfilesInfo()
        {

        }
        
        
        private string _afId;
        /// <summary>
        /// 附件主键
        /// </summary>
        [ColumnMap("Af_ID", System.Data.DbType.String)]
        public string Af_ID
        {
            get {return _afId;}
            set
            {
                if (object.Equals(this._afId, value) != true)
                {
                    this._afId = value;
                    this.RaisePropertyChanged("Af_ID");
                }
            }
        }
        
        
        private string _afPrimayid;
        /// <summary>
        /// 附件主表ID
        /// </summary>
        [ColumnMap("Af_PrimayID", System.Data.DbType.String)]
        public string Af_PrimayID
        {
            get {return _afPrimayid;}
            set
            {
                if (object.Equals(this._afPrimayid, value) != true)
                {
                    this._afPrimayid = value;
                    this.RaisePropertyChanged("Af_PrimayID");
                }
            }
        }
        
        
        private string _afAttachname;
        /// <summary>
        /// 文件名称
        /// </summary>
        [ColumnMap("Af_AttachName", System.Data.DbType.String)]
        public string Af_AttachName
        {
            get {return _afAttachname;}
            set
            {
                if (object.Equals(this._afAttachname, value) != true)
                {
                    this._afAttachname = value;
                    this.RaisePropertyChanged("Af_AttachName");
                }
            }
        }
        
        
        private string _afAttachaliasname;
        /// <summary>
        /// 文件别名
        /// </summary>
        [ColumnMap("Af_AttachAliasName", System.Data.DbType.String)]
        public string Af_AttachAliasName
        {
            get {return _afAttachaliasname;}
            set
            {
                if (object.Equals(this._afAttachaliasname, value) != true)
                {
                    this._afAttachaliasname = value;
                    this.RaisePropertyChanged("Af_AttachAliasName");
                }
            }
        }
        
        
        private string _afAttachpath;
        /// <summary>
        /// 文件路径
        /// </summary>
        [ColumnMap("Af_AttachPath", System.Data.DbType.String)]
        public string Af_AttachPath
        {
            get {return _afAttachpath;}
            set
            {
                if (object.Equals(this._afAttachpath, value) != true)
                {
                    this._afAttachpath = value;
                    this.RaisePropertyChanged("Af_AttachPath");
                }
            }
        }
        
        
        private decimal _afAttachsize;
        /// <summary>
        /// 文件大小
        /// </summary>
        [ColumnMap("Af_AttachSize", System.Data.DbType.Decimal)]
        public decimal Af_AttachSize
        {
            get {return _afAttachsize;}
            set
            {
                if (object.Equals(this._afAttachsize, value) != true)
                {
                    this._afAttachsize = value;
                    this.RaisePropertyChanged("Af_AttachSize");
                }
            }
        }
        
        
        private string _afAttachformat;
        /// <summary>
        /// 文件格式
        /// </summary>
        [ColumnMap("Af_AttachFormat", System.Data.DbType.String)]
        public string Af_AttachFormat
        {
            get {return _afAttachformat;}
            set
            {
                if (object.Equals(this._afAttachformat, value) != true)
                {
                    this._afAttachformat = value;
                    this.RaisePropertyChanged("Af_AttachFormat");
                }
            }
        }
        
        
        private byte[] _afTimestamp;
        /// <summary>
        /// 时间戳
        /// </summary>
        [ColumnMap("Af_TimeStamp", System.Data.DbType.Binary)]
        public byte[] Af_TimeStamp
        {
            get {return _afTimestamp;}
            set
            {
                if (object.Equals(this._afTimestamp, value) != true)
                {
                    this._afTimestamp = value;
                    this.RaisePropertyChanged("Af_TimeStamp");
                }
            }
        }
        
        
        private string _afTypecode;
        /// <summary>
        /// 附件类型（枚举，自定义）
        /// </summary>
        [ColumnMap("Af_TypeCode", System.Data.DbType.String)]
        public string Af_TypeCode
        {
            get {return _afTypecode;}
            set
            {
                if (object.Equals(this._afTypecode, value) != true)
                {
                    this._afTypecode = value;
                    this.RaisePropertyChanged("Af_TypeCode");
                }
            }
        }
        
        
    }
}


